home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_d / drfinfo.zip / AUTOEXEC.BAT next >
DOS Batch File  |  1993-04-09  |  673b  |  24 lines

  1. ECHO OFF
  2. REM See if the CMOS has changed
  3. CMOSCHK CMOS.286
  4. IF ERRORLEVEL 1 GOTO REST_CMOS
  5. GOTO CHECK_MBR
  6. :REST_CMOS
  7. REM CMOS is does not match stored copy. Ask if it should be restored
  8. ECHO The CMOS does not match the stored copy for the 286, do you want to restore
  9. ECHO the CMOS settings from backup? (Yes / any other key)
  10. GETCHAR
  11. IF ERRORLEVEL 121 GOTO CHECK_HIGH
  12. REM GETCHAR returns lowercase letter hit. 121 is y
  13. GOTO CHECK_MBR
  14. :CHECK_HIGH
  15. REM Check for z
  16. IF ERRORLEVEL 122 GOTO CHECK_MBR
  17. CMOSREST CMOS.286
  18. ECHO Press the Reset button at this time to reboot this disk.
  19. :WAIT4RESET
  20. GOTO WAIT4RESET
  21. :CHECK_MBR
  22. REM Now check the MBR and EPBRs
  23. PUTMBR
  24.